package com.leps.nq.tx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 区段点位预设表
 * </p>
 *
 * @author hex
 * @since 2022-07-23
 */
@Getter
@Setter
@TableName("tx_section_preset")
@ApiModel(value = "SectionPreset对象", description = "区段点位预设表")
public class SectionPreset implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "preset_id", type = IdType.AUTO)
    private Integer presetId;

    @ApiModelProperty("所属区段ID")
    private Integer sectionId;

    @ApiModelProperty("数据类型，如：VB、VW、VD")
    private String dataType;

    @ApiModelProperty("数据V区地址，如：80、82")
    private Integer dataAddress;

    @ApiModelProperty("该数据的含义、说明")
    private String spec;

    @ApiModelProperty("数据值规范")
    private String dataValueSpec;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否只读（0-只读，1-可写）")
    private Boolean writeable;

    @ApiModelProperty("数据值与实时位的倍数，只对部分数据值有意义，0表示无意义")
    private Integer ratio;


}
